import request from '@/utils/request.js'

// 获取联想建议
export const getSuggestions = params =>
  request({
    url: 'v1_0/suggestion',
    method: 'GET',
    params
  })

/**
 * 获取搜索结果
 */
export const getSearch = params => {
  return request({
    method: 'GET',
    url: 'v1_0/search',
    params
  })
}
